package com.wallet.app.controller;

import com.wallet.app.feign.MenuFeignClient;
import com.wallet.provider.model.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class MenuController {

    @Autowired
    private MenuFeignClient menuFeignClient ;

    @RequestMapping(value = "/getMenuById", method = RequestMethod.GET)
    public Menu getMenuById(@RequestParam("id") Long id) {
        return menuFeignClient.getMenuById(id);
    }
}
